 /*KODE */
 //<![CDATA[
    function repText(id) {

        var a = document.getElementById(id),

            b = a.innerHTML,

            // Images

            b = b.replace(/<i rel="image">(.[^\>]*)<\/i>/ig, "<img class='cm-image' src='$1' alt='loading...' \/>");

            b = b.replace(/\[img\](.[^\]]*)\[\/img\]/ig, "<img class='cm-image' src='$1' alt='loading...' \/>");

          

        document.getElementById(id).innerHTML = b;

    } repText('comment_block');

    //]]>
	/*PAGE LOADER*/
	//<![CDATA[
// Menyisipkan markup tabir animasi
$(document.body).append('<div id="page-loader"> </div>');
// Saat halaman aktif terpicu untuk berpindah/keluar menuju halaman lain...
$(window).on("beforeunload", function() {
$('#page-loader').fadeIn(1000).delay(6000).fadeOut(1000);});
//]]>
/*SPAMMER DETECTED*/
//<![CDATA[
function blockLinks(parentID, children) {
    var parent = document.getElementById(parentID),
        content = parent.getElementsByTagName(children);
    for (var i = 0; i < content.length; i++) {
        if (content[i].innerHTML.indexOf('</a>') !== -1) {
            content[i].innerHTML = "<mark>No live link!!!</mark> Dilarang nyepam di sini!";
            content[i].className = "spammer-detected";
        }
    }
} 
blockLinks('comment_block', 'p');
//]]>
/*1
//<![CDATA[
jQuery(document).ready(function () {emoticonx({
emoRange:"#comments p, div.emoWrap",
putEmoAbove:"iframe#comment-editor",
topText:"Klik untuk melihat kode!",
emoMessage:"Untuk memasukkan emoticon setidaknya ada satu spasi sebelum kode emoticon."
})
});
//]]>
/*2
//<![CDATA[
jQuery(document).ready(function () {emoticonx({
emoRange:"#comments p, div.emoWrap",
putEmoAbove:"iframe#comment-editor",
topText:"Klik untuk melihat kode!",
emoMessage:"Untuk memasukkan emoticon setidaknya ada satu spasi sebelum kode emoticon."
})
});
//]]>
/*TOP
$(window).scroll(function(){if($(this).scrollTop()&gt;100){$(&quot;#top&quot;).removeAttr(&quot;href&quot;);$(&quot;#top&quot;).stop().animate({bottom:&quot;-3&quot;,right:&quot;0&quot;},{duration:600,queue:false})}else{$(&quot;#top&quot;).stop().animate({bottom:&quot;-50&quot;,right:&quot;0&quot;},{duration:600,queue:false})}});$(function(){$(&quot;#top&quot;).click(function(){$(&quot;html, body&quot;).animate({scrollTop:0},&quot;slow&quot;);return false})});
/*SIDEBAR HIDE
//<![CDATA[
$(document).ready(function() {
    $('#sidebar .widget-content').hide();
    $('#sidebar h2:first').addClass('active').next().slideDown('slow');
    $('#sidebar h2').css('cursor', 'pointer').click(function() {
        if($(this).next().is(':hidden')) {
            $('#sidebar h2').removeClass('active').next().slideUp('slow');
            $(this).toggleClass('active').next().slideDown('slow');
        }
    });
});
//]]>

